package xyz.riceball.develop.entity.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.riceball.framework.core.bean.BaseDatePO;

/**
 * 接口表(Route)表实体类
 *
 * @author xiaovcloud
 * @since 2022-04-24 20:17:49
 */
@ApiModel("操作接口")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_rb_route")
public class RoutePO extends BaseDatePO<RoutePO> {

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("请求路径")
    private String pattern;

    @ApiModelProperty("功能编码")
    private String code;

    @ApiModelProperty("功能名称")
    private String name;

    @ApiModelProperty("请求类型")
    @TableField("method_type")
    private String methodType;

    @ApiModelProperty("菜单id")
    @TableField("menu_id")
    private String menuId;

    @ApiModelProperty("是否在线 1为在线 0为下线")
    private Integer online;

    @ApiModelProperty("状态 1启用0停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("校验类型 1为无需权限 2为需要登陆权限 3为需要特殊权限")
    private Integer checkType;

}